package com.rays.sysmech.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFileChooser;

import com.rays.sysmech.ui.MainWindow;

public class BrowseBtnListner implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent arg0) {
		JFileChooser chooser = new JFileChooser();
		chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
        chooser.showOpenDialog(null);
        MainWindow.getMainWindow().setSelectedFile(chooser.getSelectedFile());

	}

}
